package com.hmf.dao;

import com.hmf.bean.Bicycle;
import com.hmf.bean.Control;
import com.hmf.bean.RideRecord;
import com.hmf.bean.RideRepair;

import java.util.List;

public interface HmfMenuMapper {
    //按角色读取菜单
    List<Control> queryMenuByRole(int role_id );
    //用户骑行记录
    List<RideRecord> searchRideRecord(String username);
    //查询单车状态
    List<Bicycle> searchRideStatus();
    //故障单车登记
    int insertRideRepair(RideRepair rideRepair);
    //所有用户骑行记录
    List<RideRecord> searchAllRideRecord();
    //故障单车处理
    List<RideRepair> rideRepair();
    //故障单车更新
    int updateRepair(int repairID);
}
